package com.show.service.impl;

import com.show.dao.IUserDao;
import com.show.service.IUserService;
import com.show.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

// 加入容器
@Service
public class UserServiceImpl implements IUserService {

    // 注入userDao
    @Autowired
    private IUserDao userDao;

    public void setUserDao(IUserDao userDao1){
        this.userDao = userDao1;
    }


    @Override
    public List<User> findAll() {
       return userDao.findAll();
    }
}
